﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Model;

namespace WebApplication2
{
    public class BasePage : System.Web.UI.Page
    {

        public UserModel LoginUser
        {
            get
            {
                if (Session["User"]==null)
                {
                    return new UserModel();
                }

                var user = Session["User"] as UserModel;
                return user;
            }
        }

    }
}